package com.qianyu.project.mapper;

import com.qianyu.project.entity.BuildListMaintain;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.mapper.provider.BuildListMaintainSubMapperProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 施工清单维护主表 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface BuildListMaintainMapper extends BaseMapper<BuildListMaintain> {
    @Insert("insert into build_list_maintain values(#{id},#{p_id},#{m_subject},#{maintainer},#{m_date},#{attach_ids})")
    void saveProgress(Map<String, Object> map);

    @SelectProvider(type = BuildListMaintainSubMapperProvider.class,method = "List")
    List<Map<String, Object>> List(Map<String, String> params);
}
